﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace VCN.App.DataTransferObjects
{
    public class News : BasicObject
    {
        string title;
        string shortContent;
        string contents;
        string newsImage;        
        DateTime createdDate;
        int type;
        int authorId;
        string reference;
        int viewCount;

        public string Title
        {
            get { return title; }
            set { title = value; }
        }
        

        public string ShortContent
        {
            get { return shortContent; }
            set { shortContent = value; }
        }
        

        public string Contents
        {
            get { return contents; }
            set { contents = value; }
        }
        

        public string NewsImage
        {
            get { return newsImage; }
            set { newsImage = value; }
        }

        

        public int Type
        {
            get { return type; }
            set { type = value; }
        }
        

        public DateTime CreatedDate
        {
            get { return createdDate; }
            set { createdDate = value; }
        }        

        public int AuthorId
        {
            get { return authorId; }
            set { authorId = value; }
        }        

        public string Reference
        {
            get { return reference; }
            set { reference = value; }
        }
       

        public int ViewCount
        {
            get { return viewCount; }
            set { viewCount = value; }
        }
        public News()
        { 

        }
        public News(int ip_Id)
        {
            Id = ip_Id;
        }

        public News(
            int ip_id,
            string ip_title,
            string ip_shortContent,
            string ip_contents,
            string ip_imageThmb,
            DateTime ip_createdDate, 
            int ip_type,           
            int ip_authorId,
            string ip_reference,
            int ip_viewCount
          )
            : base(ip_id)
        {
            title = ip_title;
            shortContent = ip_shortContent;
            contents = ip_contents;
            newsImage = ip_imageThmb;
            createdDate = ip_createdDate;
            type = ip_type;
            authorId = ip_authorId;
            reference = ip_reference;
            viewCount = ip_viewCount;
        }

    }
}